﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace App1
{
    public class BookSearchList
    {
        public BookSearchList()
        {
            booksearchlist = new List<BookSearch>();
        }
        public List<BookSearch> booksearchlist { get; set; }
    }



//Error	Error code / description (Note: request success code = 0)
//Time	Request query execution time (seconds)
//Total	The total search results
//Page	The page number of results (Note: limit = 10 results on page)
//Books	Search results, Array: ID, Title, SubTitle (optional), Description, Image
    public class BookSearch
    {
        public int Error { get; set; }
        public string Time { get; set; }
        public string Total { get; set; }
        public string Page { get; set; }
        public List<BookDetail> books { get; set; }
    }

//Error	Error code / description (Note: request success code = 0)
//Time	Request query execution time (seconds)
//ID	The ID of the book
//Title	The title of the book
//SubTitle	The subtitle of the book
//Description	The description of the book
//Author	The author(s) name of the book
//ISBN	The International Standard Book Number (ISBN) of the book
//Page	The number of pages of the book
//Year	The publication date (year) of the book
//Publisher	The publisher of the book
//Image	The image URL of the book
//Download	The download URL of the book
    public class BookDetail
    {
        public string Error { get; set; }
        public string Time { get; set; }
        public string ID { get; set; }
        public string Title { get; set; }
        public string SubTitle { get; set; }
        public string Description { get; set; }
        public string Author { get; set; }
        public string ISBN { get; set; }
        public string Page { get; set; }
        public string Year { get; set; }
        public string Publisher { get; set; }
        public string Image { get; set; }
        public string Download { get; set; }
    }
}
